home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Python 1.3 / source code / Include / allobjects.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-17  |  3.0 KB  |  110 lines  |  [TEXT/R*ch]

  1. #ifndef Py_ALLOBJECTS_H
  2. #define Py_ALLOBJECTS_H
  3. /* Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" { */
  4.  
  5. /***********************************************************
  6. Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
  7. The Netherlands.
  8.  
  9.                         All Rights Reserved
  10.  
  11. Permission to use, copy, modify, and distribute this software and its 
  12. documentation for any purpose and without fee is hereby granted, 
  13. provided that the above copyright notice appear in all copies and that
  14. both that copyright notice and this permission notice appear in 
  15. supporting documentation, and that the names of Stichting Mathematisch
  16. Centrum or CWI not be used in advertising or publicity pertaining to
  17. distribution of the software without specific, written prior permission.
  18.  
  19. STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
  20. THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  21. FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
  22. FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  23. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  24. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  25. OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  26.  
  27. ******************************************************************/
  28.  
  29. /* Include nearly all Python header files */
  30.  
  31. /* Some systems (well, NT anyway!) require special declarations for
  32.  data items imported from dynamic modules.  Note that this defn is
  33.  only turned on for the modules built as DL modules, not for python
  34.  itself.
  35. */
  36. #define DL_IMPORT( RTYPE ) RTYPE /* Save lots of #else/#if's */
  37. #ifdef USE_DL_IMPORT
  38. #ifdef NT
  39. #undef DL_IMPORT
  40. #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
  41. #endif /* NT */
  42. #ifdef __BORLANDC__
  43. #undef DL_IMPORT
  44. #define DL_IMPORT(RTYPE)  RTYPE __import
  45. #endif /* BORLANDC */
  46. #endif /* USE_DL_IMPORT */
  47.  
  48. #ifdef HAVE_CONFIG_H
  49. #include "config.h"
  50. #endif
  51.  
  52. #ifdef SYMANTEC__CFM68K__
  53. #define UsingSharedLibs
  54. #endif
  55.  
  56. #include <stdio.h>
  57. #include <string.h>
  58. #include <errno.h>
  59.  
  60. #include "myproto.h"
  61.  
  62. #ifdef SYMANTEC__CFM68K__
  63. #pragma lib_export on
  64. #endif
  65.  
  66. #include "object.h"
  67. #include "objimpl.h"
  68.  
  69. #include "accessobject.h"
  70. #include "intobject.h"
  71. #include "longobject.h"
  72. #include "floatobject.h"
  73. #include "rangeobject.h"
  74. #include "stringobject.h"
  75. #include "tupleobject.h"
  76. #include "listobject.h"
  77. #include "mappingobject.h"
  78. #include "methodobject.h"
  79. #include "moduleobject.h"
  80. #include "funcobject.h"
  81. #include "classobject.h"
  82. #include "fileobject.h"
  83.  
  84. #include "errors.h"
  85. #include "mymalloc.h"
  86.  
  87. #include "modsupport.h"
  88. #include "ceval.h"
  89.  
  90. #include "abstract.h"
  91.  
  92. extern void Py_FatalError Py_PROTO((char *));
  93.  
  94. #define PyArg_GetInt(v, a)    PyArg_Parse((v), "i", (a))
  95. #define PyArg_NoArgs(v)        PyArg_Parse(v, "")
  96.  
  97. /* Convert a possibly signed character to a nonnegative int */
  98. /* XXX This assumes characters are 8 bits wide */
  99. #ifdef __CHAR_UNSIGNED__
  100. #define Py_CHARMASK(c)        (c)
  101. #else
  102. #define Py_CHARMASK(c)        ((c) & 0xff)
  103. #endif
  104.  
  105. #ifndef Py_USE_NEW_NAMES
  106. #include "rename2.h"
  107. #endif
  108.  
  109. #endif /* !Py_ALLOBJECTS_H */
  110.